package com.example.demo.bean;

import java.util.LinkedList;
import java.util.List;

/**
 * jdk8 lambda表达式
 */
public class TestStream {

    public static void main(String[] args) {

        List<SysRole> sysRoleList = new LinkedList<>();
        SysRole role1 = new SysRole();
        role1.setRoleId(1L);
        role1.setRoleName("角色1");

        SysRole role2 = new SysRole();
        role2.setRoleId(2L);
        role2.setRoleName("角色2");


    }
}
